package ONE;
class MusicBoxFactory {
	public static MusicBox getInstance(String name){
		MusicBox M=null;
		if("Piano".equals(name)){
			M=new PianoBox();
		}
		if("Violin".equals(name)){
			M=new ViolinBox();
		}
		return M;
	}
}
